
#include "StmtTable.h"
#include <iostream>
using namespace std;

TYPE StmtTable::getType(int stmtNum) {
	return table.at(stmtNum).getType();
}

vector<int> StmtTable::getStmtNum(TYPE type) {
	vector<int> results;
	for ( int i = 0; i < table.size(); ++i ) {
		if ( table.at(i).getType()==type )
			results.push_back(i);
	}
	return results;
}

void StmtTable::insertData(TYPE type, int stmtNum) {
	StmtTableRow row(type, stmtNum);
	table.push_back(row);
}

int StmtTable::getTableSize() {
	return table.size();
}

vector<int> StmtTable::getStmtList() {
	vector<int> list;
	return list;
}